package com.panshi.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppAnswer对象", description="回答表")
public class AppAnswer implements Serializable {

    @ApiModelProperty(value = "回答id")
    private Integer answerId;

    @ApiModelProperty(value = "问题id")
    private Integer matterId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "回答简介")

    private String answerSynopsis;

    @ApiModelProperty(value = "回答内容")
    private String answerContent;

    @ApiModelProperty(value = "上架时间")
    private String groundTime;

    @ApiModelProperty(value = "回答评论量")
    private Integer commentCount;

    @ApiModelProperty(value = "回答点赞量")
    private Integer praiseCount;

    @ApiModelProperty(value = "回答点踩量")
    private Integer treadCount;

    @ApiModelProperty(value = "回答用户")
    private AppUser appUser;

    @ApiModelProperty(value = "回答评论集合")
    private List<AppComment> commentList;


}
